using DataDynamics.ActiveReports.Document;
using DataDynamics.ActiveReports.Viewer;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using TVSBH.func;
namespace TVSGPP.func
{
	public class frmBookTemHumPriview : Form
	{
		public string month = "";
		private IContainer components = null;
		private Viewer viewer1;
		public frmBookTemHumPriview()
		{
			this.InitializeComponent();
		}
		private void frmBookTemHumPriview_Load(object sender, EventArgs e)
		{
			frmBookTemHumPrint frmBookTemHumPrint = new frmBookTemHumPrint();
			this.viewer1.Document = frmBookTemHumPrint.Document;
			frmBookTemHumPrint.lblMonth.Text = this.month;
			frmBookTemHumPrint.Run();
		}
		private void frmBookTemHumPriview_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBookTemHumPriview));
			this.viewer1 = new Viewer();
			base.SuspendLayout();
			this.viewer1.BackColor = SystemColors.Control;
			this.viewer1.Dock = DockStyle.Fill;
			this.viewer1.Document = new Document("ARNet Document");
			this.viewer1.Location = new Point(0, 0);
			this.viewer1.Name = "viewer1";
			this.viewer1.ReportViewer.CurrentPage = 0;
			this.viewer1.ReportViewer.MultiplePageCols = 3;
			this.viewer1.ReportViewer.MultiplePageRows = 2;
			this.viewer1.ReportViewer.ViewType = ViewType.Normal;
			this.viewer1.Size = new Size(884, 565);
			this.viewer1.TabIndex = 1;
			this.viewer1.TableOfContents.Text = "Table Of Contents";
			this.viewer1.TableOfContents.Width = 200;
			this.viewer1.TabTitleLength = 35;
			this.viewer1.Toolbar.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(884, 565);
			base.Controls.Add(this.viewer1);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmBookTemHumPriview";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "SỔ THEO DÕI NHIỆT ĐỘ - ĐỘ ẨM";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.frmBookTemHumPriview_Load);
			base.KeyDown += new KeyEventHandler(this.frmBookTemHumPriview_KeyDown);
			base.ResumeLayout(false);
		}
	}
}
